var config = require('../conf/config');

exports.error = function (res, theErrorCode) {
    res.json({"error" : theErrorCode});
};

exports.success = function (res) {
	res.json({"result" : config.constant.SUCCESS});
};

exports.data = function (res, data) {
    res.json({"result" : data});
};

exports.server404 = function (res) {
	res.status(404).json({"error" : config.errorCode.server404});
};

exports.server500 = function (res) {
	res.status(500).json({"error" : config.errorCode.server500});
};
